public class Transform3D extends DoubleSquareMatrix
swigCMemOwn
Modifier | Constructor and Description |
---|---|
|
Transform3D()
Constructor.
|
protected |
Transform3D(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
protected static long |
getCPtr(Transform3D obj) |
void |
Reflect() |
void |
SetRotation(double angle,
AxisType axis)
set the rotation matrix
|
void |
SetRotation(double cosT,
double sinT,
Point3D axis) |
void |
SetRotation(double angle,
Point3D axis)
set the rotation matrix
|
void |
SetRotationFromQuaternion(SWIGTYPE_p_double quaternion) |
void |
setToIdentity() |
void |
SetTranslation(Point3D move) |
void |
TransformPoint(Point3D pt) |
getCPtr, transposeInplace
protected Transform3D(long cPtr, boolean cMemoryOwn)
public Transform3D()
Constructor.
Initialize to an identity matrix transformation. This is a 4x4 matrix that includes the rotation and translation parts see Foley's 'Introduction to Computer Graphics' for the representation
Operator *= and = are provided by the parent class square matrix. Operator *= needs some explanation, since the order matters. This transform gets set to the combination other and the current state of this transform If this_old and this_new are the states of this object before and after this function we have this_new(point) = this_old(other(point))
protected static long getCPtr(Transform3D obj)
protected void finalize()
finalize
in class DoubleSquareMatrix
public void delete()
delete
in class DoubleSquareMatrix
public void setToIdentity()
public void TransformPoint(Point3D pt)
public void SetTranslation(Point3D move)
public void SetRotation(double angle, AxisType axis)
set the rotation matrix
The rotation matrix is set to rotation by th specified angle about the specified axis
public void SetRotation(double angle, Point3D axis)
set the rotation matrix
The rotation matrix is set to rotation by th specified angle about an arbitrary axis
public void SetRotation(double cosT, double sinT, Point3D axis)
public void SetRotationFromQuaternion(SWIGTYPE_p_double quaternion)
public void Reflect()